﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Transactions;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using DotNetOpenAuth.AspNet;
using Microsoft.Web.WebPages.OAuth;
using WebMatrix.WebData;
using GiaoTrinhEPU.Filters;
using GiaoTrinhEPU.Models;
namespace GiaoTrinhEPU.Areas.Manager.Controllers
{
    [InitializeSimpleMembership]
    public class HomeController : BaseController
    {
        public HomeController()
            : base()
        {
            ViewBag.SelectedMenuId = 1;
        }
        public ActionResult Index()
        {
            ViewBag.Title = "Quản Trị | Trang Chủ";

            return View();
        }


        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult LogOff()
        {
            
            WebSecurity.Logout();

            return RedirectToAction("Login", "Account",new {area=""} );
        }
    }
}